//
//  NGBaseViewController.swift
//  NingguoForum
//
//  Created by zhengsw on 2022/11/10.
//  Copyright © 2022 zhengsw. All rights reserved.
//

import UIKit

class NGBaseViewController: UIViewController ,NGBaseNavigationBarViewDelegate{
    var navigationBarView: NGBaseNavigationBarView!
    override func viewDidLoad() {
        super.viewDidLoad()
        navigationBarView = NGBaseNavigationBarView(frame: CGRect(x: 0, y: 0, width: KSCREEN_WIDTH, height: KDevice_NaviBar_Height))
        navigationBarView.delegate = self
        view.addSubview(navigationBarView)
    }
    
    func backAction() {
        self.navigationController?.popViewController(animated: true)
    }
    deinit {
            print("NGBaseViewController deinit")
        }
}
